/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mrstalk;

/**
 *
 * @author gabriel
 */
public class Server implements Runnable {

    public void run() {
        try {
            ConnectionManager.receiveCall();
            String user = MRSTalkApp.clientWindow.getUser();
            Chat chat = ConnectionManager.acceptCall(user);
            MRSTalkApp.setChat(chat);
            
        } catch (NullPointerException e) {
            
        }
    }

}
